
"vscode配置
"function! s:openVSCodeCommandsInVisualMode()
"    normal! gv
"    let visualmode = visualmode()
"    if visualmode == "V"
"        let startLine = line("v")
"        let endLine = line(".")
"        " 最后一个参数 1 表示操作后仍处于选择模式，0 则表示操作后退出选择模式
"        call VSCodeNotifyRange("workbench.action.showCommands", startLine, endLine, 1)
"    else
"        let startPos = getpos("v")
"        let endPos = getpos(".")
"        call VSCodeNotifyRangePos("workbench.action.showCommands", startPos[1], endPos[1], startPos[2], endPos[2], 1)
"    endif
"endfunction
"
"" workaround for calling command picker in visual mode
"xnoremap <silent> <C-P> :<C-u>call <SID>openVSCodeCommandsInVisualMode()<CR>
"
"
"if exists('g:vscode')
"    " VSCode extension
"else
"    " ordinary neovim
"endif
"
"" init.vim
"nnoremap <silent> <C-j> :call VSCodeNotify('workbench.action.navigateDown')<CR>
"nnoremap <silent> <C-k> :call VSCodeNotify('workbench.action.navigateUp')<CR>
"nnoremap <silent> <C-h> :call VSCodeNotify('workbench.action.navigateLeft')<CR>
"nnoremap <silent> <C-l> :call VSCodeNotify('workbench.action.navigateRight')<CR>
